package com.bbs.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("context")
public class Context implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Integer userId;

    private String context;

    private String image;

    private LocalDateTime updateTime;

    private LocalDateTime createTime;

    private Integer status;

    private String reason;

    // 新增字段：评论数
    private Integer commentCount;

    // Getter 和 Setter 方法会自动生成
    public Integer getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(Integer commentCount) {
        this.commentCount = commentCount;
    }

    // 新增字段：标题
    private String title;

    // Getter 和 Setter 方法会自动生成
}